namespace MvcEnrollment.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class capCourses : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Course", "ProviderID", c => c.Int());
            AddColumn("dbo.Course", "CreatedBy", c => c.String());
            AddColumn("dbo.Course", "CreatedDate", c => c.DateTime());
            AlterColumn("dbo.Course", "Name", c => c.String());
            AlterColumn("dbo.Course", "Provider", c => c.String());
            AlterColumn("dbo.Course", "Description", c => c.String());
            AlterColumn("dbo.Course", "Study_Mode", c => c.String());
            AlterColumn("dbo.Course", "Duration", c => c.String());
            AlterColumn("dbo.Course", "Career_Prospect", c => c.String());
            AlterColumn("dbo.Course", "Recognition_Accredition", c => c.String());
            AlterColumn("dbo.Course", "Qualification_Prerequisites", c => c.String());
            AlterColumn("dbo.Course", "Testimonial", c => c.String());
            AlterColumn("dbo.Course", "Units", c => c.String());
            AlterColumn("dbo.Course", "ModifiedBy", c => c.String());
            AlterColumn("dbo.Course", "ModifiedDate", c => c.DateTime());
            DropColumn("dbo.Course", "createBy");
            DropColumn("dbo.Course", "createDate");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Course", "createDate", c => c.DateTime());
            AddColumn("dbo.Course", "createBy", c => c.String());
            AlterColumn("dbo.Course", "modifiedDate", c => c.DateTime());
            AlterColumn("dbo.Course", "modifiedBy", c => c.String());
            AlterColumn("dbo.Course", "units", c => c.String());
            AlterColumn("dbo.Course", "testimonial", c => c.String());
            AlterColumn("dbo.Course", "qualification_prerequisites", c => c.String());
            AlterColumn("dbo.Course", "recognition_accredition", c => c.String());
            AlterColumn("dbo.Course", "career_prospect", c => c.String());
            AlterColumn("dbo.Course", "duration", c => c.String());
            AlterColumn("dbo.Course", "study_mode", c => c.String());
            AlterColumn("dbo.Course", "description", c => c.String());
            AlterColumn("dbo.Course", "provider", c => c.String());
            AlterColumn("dbo.Course", "name", c => c.String());
            DropColumn("dbo.Course", "CreatedDate");
            DropColumn("dbo.Course", "CreatedBy");
            DropColumn("dbo.Course", "ProviderID");
        }
    }
}
